package 数据结构.链表.带头链表.非循环链表.单向链表;

public class Main {
    public static void main(String[] args) {
        MyLinkedList list = new MyLinkedList();
        list.addFirst(3);
        list.addFirst(2);
        list.addFirst(1);

        list.addLast(3);
        list.addLast(2);
        list.addLast(1);

//        int size = list.size();
//        System.out.println(size);

//        boolean contains = list.contains(4);
//        System.out.println(contains);

//        list.removeAllKey(8);
//        list.clear();

        list.display();

    }
}
